package com.sakura.eduservice.client;

import com.sakura.commonutils.R;
import com.sakura.eduservice.client.fallback.MemberDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-ucenter",fallback = MemberDegradeFeignClient.class)
@Component
public interface MemberClient {

    @GetMapping("/educenter/member/info/{memberId}")
    R userInfo(@PathVariable("memberId") String memberId);
}
